home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’94 / [√] Distribution Restricted! / James Ullrey / HP-15C / HP-15C.FPU68020 / HP-15C.FPU68020.rsrc / TEXT_1038_StorageRegisterOperations.txt < prev    next >
Text File  |  1994-06-25  |  4KB  |  100 lines

  1. - STORAGE REGISTER OPERATIONS  
  2. STORAGE REGISTER OPERATIONS
  3.  
  4. When numbers are stored or recalled, they are copied between the display(X-register) and the data storage registers. At "power-up" (initial turn-on) the HP-15C has 21 directly accessible storage registers: R0 through R9, R.0 through R.9, and the Index register(RI). Six registers, R2 to R7, are also used for statistics calculations.
  5.  
  6. The number of available data storage registers can be increased or decreased. The DIM function, which is used to reallocate registers in calculator memory, is discussed in "Memory Allocation".
  7.  
  8. Storing and Recalling Numbers
  9.  
  10. STO (store). When followed by a storage register address(0 through 9 or .0 through .9*), this function copies a number from the display(X-register) into the specified data storage register. It will replace any existing contents of that register.
  11.  
  12. RCL (recall). Similarly, you can recall data from a particular register into the display by pressing RCL followed by the register address. This brings a copy of the desired data into the display; the contents of the storage register remain unaltered.
  13.  
  14. x>< (X exchange). Followed by 0 through .9,* this function exchanges the contents of the X-register and the addresed data storage register. This is useful to view storage registers without disturbing the stack.
  15.  
  16. The above are stack lift-enabling operations, so the number remaining in the X-register can be used for subsequent calculations. If you address a nonexistant register, the display will show "Error 3".
  17.  
  18. Example: Springtime is coming and you want to keep track of 24 crocuses planted in your garden. Store the number of crocuses blooming the first day, and add to this the number of new blooms the second day.
  19.  
  20. Keystrokes          Display
  21. 3 STO 0            3.0000
  22.  
  23. Stores the number of first day blooms in R0.
  24.  
  25. Trun the calculator off. Next day, turn it back on again.
  26.  
  27. RCL 0              3.0000
  28.  
  29. Recalls the number of crocuses that bloomed yesterday.
  30.  
  31. 5 +                8.0000
  32.  
  33. Adds today's new blooms to get the total blooming crocuses.
  34.  
  35. Storage and Recall Arithmetic
  36.  
  37. Storage Arithmetic. Suppose you not only wanted to staore a number, but perform arithmetic with it and store the result in the same register. You can do this directly-without using RCL-by using the following procedure:
  38.  
  39. 1. Have your second operand(besides the one in storage) in the display(as a result of a calculation, a recall, or keying in).
  40.  
  41. 2. Press STO.
  42.  
  43. 3. Press +, -, *, or √∑ .
  44.  
  45. 4. Key in the register address(0 to 9, .0 to .9). (The Index register, discussed elsewhere*, can also be used.)
  46.  
  47. The new number in the register is determined as follows:
  48.  
  49. For storage arithmetic,
  50.  
  51. new        = old      { + }  number
  52. contents     contents { - }  in
  53. of           of       { * }  display
  54. register     register { √∑ }
  55.  
  56. R0 r     T t          R0 r-x     T t
  57.          Z z                     Z z
  58.          Y y                     Y y
  59.          X x                     X x
  60.  
  61. Keys:              STO - 0
  62.  
  63. Recall Arithmetic. Recall arithmetic allows you to perform arithmetic with the displayed value and a stored value without lifting the stack, that is, without losing any values from the Y-, Z-, and T- registers. The keytstorke sequence is the same as for the storage arithmetic using RCL in place of STO.
  64.  
  65. For recall arithmetic,
  66.  
  67. new        = old      { + }  number
  68. contents     contents { - }  in
  69. of           of       { * }  display
  70. register     register { √∑ }
  71.  
  72. R0 r     T t          R0 r       T t
  73.          Z z                     Z z
  74.          Y y                     Y y
  75.          X x                     X x-r
  76.  
  77. Keys:              RCL - 0
  78.  
  79. Example: Keep a running count of your newly bloomong crocuses for two more days.
  80.  
  81. Keystrokes          Display
  82. 8 STO 0            8.0000
  83.  
  84. Places the total number of blooms as of day 2 in R0.
  85.  
  86. 4 STO + 0         4.0000
  87.  
  88. Day 3: adds four new blooms to those already blooming.
  89.  
  90. 3 STO + 0         3.0000
  91.  
  92. Day 4: adds three new blooms.
  93.  
  94. 24 RCL - 0       9.0000
  95.  
  96. Subtracts total number of blooms summed in R0(15) from the total number of plants(24): 9 crocuses have not bloomed.
  97.  
  98. RCL 0              15.0000    (The number in R0 does not change.)
  99.  
  100.